package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.elasticsearch.annotations.*;

import java.io.Serializable;
import java.util.Date;
@Data
@Accessors(chain = true)
public class City implements Serializable {
	@TableId(type = IdType.AUTO)
	@Field(type = FieldType.Integer,index = false)
	private Integer id;
	@MultiField(
			mainField = @Field (type = FieldType.Text,analyzer = "ik_max_word"),
			otherFields = @InnerField(type = FieldType.Keyword,suffix = "keyword")

	)
	private String cityName;
	@Transient
	private String cityPinyin;
	@Transient
	private Integer hotalNumber = 0;
	@Transient
	private Date createTime = new Date();
	@Transient
	private Integer status = 0;

}
